package com.huiHang.auth.api.hystrix;

import com.huihang.core.utils.Result;
import com.huihang.core.utils.ResultCode;
import org.springframework.stereotype.Component;

@Component
public abstract class AuthApiFailBack  {
    private String operatorLoginFallback(Throwable throwable) {
        return "控制器层的回退逻辑";
    }

    public Result<String> verificationCode(Throwable throwable) {
        return Result.error(ResultCode.SERVICE_UNAVAILABLE.getCode());
    }

    public Result<String> userRegistration(Throwable throwable){
        return Result.error(ResultCode.ERROR.getCode());
    }
}
